﻿#ifndef ORDERDIALOG_H
#define ORDERDIALOG_H

#include <QDialog>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QDateEdit>
#include <QPushButton>

class OrderDialog : public QDialog {
    Q_OBJECT

public:
    explicit OrderDialog(QWidget *parent = nullptr);

    // Getter methods to access private members
    QComboBox* getKindComboBox() const { return kindComboBox; }
    QLineEdit* getQuantityInput() const { return quantityInput; }
    QLineEdit* getPrepaymentInput() const { return prepaymentInput; }
    QLineEdit* getCustomerNameInput() const { return customerNameInput; }
    QLineEdit* getContactMethodInput() const { return contactMethodInput; }
    QDateEdit* getDateEdit() const { return dateEdit; }
   ~OrderDialog();

private:
    QVBoxLayout *mainLayout;
    QComboBox *kindComboBox;
    QLineEdit *quantityInput;
    QLineEdit *prepaymentInput;
    QLineEdit *customerNameInput;
    QLineEdit *contactMethodInput;
    QDateEdit *dateEdit;  // Added as a private member
    QPushButton *okButton;
    QPushButton *cancelButton;

};

#endif // ORDERDIALOG_H
